/* 
 * File:   repository_item.hpp
 * Author: jolo
 *
 * Created on 11. Oktober 2011, 12:48
 */

#ifndef GUI_REPOSITORY_ITEM_HPP
#define	GUI_REPOSITORY_ITEM_HPP

#include <widgets/entity_item.hpp>

namespace model
{
    class repository;
    typedef shared_ptr<repository> repository_ptr;
}

namespace gui
{

    class repository_item: public widgets::entity_item
    {
    public:
        repository_item(model::repository_ptr p);

        virtual ~repository_item();

        model::repository_ptr repository() const
        {
            return r_;
        }

    private:
        model::repository_ptr r_;
    };
}

#endif	/* REPOSITORY_ITEM_HPP */

